package com.timerecording.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.timerecording.domain.entity.ReSalaryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface ReSalaryDao extends BaseMapper<ReSalaryEntity> {

    /** 小时工资表删除 此为逻辑删除不是物理删除 修改deleteFlag为1
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/7/15
     */

    void updateById(@Param("salaryId") Integer salaryId);

    /** 小时工资状态恢复 delete_flag = 0
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/7/15
     */

    void updateDelectFlagById(@Param("salaryId") Integer salaryId);
}
